<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Grom Hellscream
 * Date: 11/2/12
 * Time: 11:06 AM
 * To change this template use File | Settings | File Templates.
 */
defined('_JEXEC') or die;


/**
 * @package		Joomla.Administrator
 * @subpackage	mod_vast_quangcao
 */
abstract class modVastQuangCaoHelper
{
    static function getQuangCaoInfo()
    {
        $db = JFactory::getDbo();
        $query = $db->getQuery(true);
        $query->select('a.*');
        $query->from('#__quangcao AS a');
        $query->where('published = 1');
        
        $db->setQuery($query);
                
        return $db->loadObjectList();        
    }
}
